import { Moment } from 'moment';

export const enum WithdrawApplyStatus {
    NEW = 'NEW',
    VALID = 'VALID',
    PAID = 'PAID'
}

export interface IUserWithdrawApply {
    id?: number;
    userId?: number;
    amount?: number;
    withdrawType?: string;
    weixinAccount?: string;
    bankName?: string;
    bankCardNo?: string;
    bankCardName?: string;
    status?: WithdrawApplyStatus;
    createdDate?: Moment;
    withdrawDate?: Moment;
}

export class UserWithdrawApply implements IUserWithdrawApply {
    constructor(
        public id?: number,
        public userId?: number,
        public amount?: number,
        public withdrawType?: string,
        public weixinAccount?: string,
        public bankName?: string,
        public bankCardNo?: string,
        public bankCardName?: string,
        public status?: WithdrawApplyStatus,
        public createdDate?: Moment,
        public withdrawDate?: Moment
    ) {}
}
